import instance from '../../axios.service';
import {ApplyCategoryItem, ResDto} from "../../types/common";
import {basePath} from '../config'
export default {
    getList: (): Promise<ResDto> => instance.get(`${basePath}/apply-admin/category/list`),// 申请分类列表
    edit: (data: ApplyCategoryItem): Promise<ResDto> => instance.post(`${basePath}/apply-admin/category/edit`, data),// 编辑申请分类
    add: (data: ApplyCategoryItem): Promise<ResDto> => instance.post(`${basePath}/apply-admin/category/add`, data),// 添加申请分类

}
